import { emitCurrentTimeChange } from '../event';

let classRoomCurrentTime = 0;

export const setClassRoomCurrentTime = (time: number): void => {
  classRoomCurrentTime = time;
  emitCurrentTimeChange({ time });
};

export const getClassRoomCurrentTime = (): number => {
  return classRoomCurrentTime;
};
